import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const knowledgeManager: AppRouteModule = {
  path: '/knowledgeManager',
  name: 'knowledgeManager',
  component: LAYOUT,
  redirect: '/knowledgeManager/KnowledgeBase',
  meta: {
    orderNo: 6,
    icon: 'ion:library-outline',
    title: t('routes.demo.knowledgeManager.knowledgeManager'),
  },
  children: [
    {
      path: 'KnowledgeBase',
      name: 'KnowledgeBase',
      meta: {
        title: t('routes.demo.knowledgeManager.KnowledgeBase'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/knowledgeManager/index.vue'),
    },
    {
      path: 'labelManager',
      name: 'labelManager',
      meta: {
        title: t('routes.demo.knowledgeManager.labelManager'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/knowledgeManager/labelManager.vue'),
    },
  ],
};

export default knowledgeManager;
